<Project>
  <PropertyGroup>
    <InferPlatformFromTargetArchitecture>true</InferPlatformFromTargetArchitecture>

    <!-- TODO: Clean-up casing and remove __BuildType to remove this block. -->
    <Configuration Condition="'$(Configuration)' == ''">$(__BuildType)</Configuration>
    <Configuration Condition="'$(Configuration)' == 'debug'">Debug</Configuration>
    <Configuration Condition="'$(Configuration)' == 'release'">Release</Configuration>
    <Configuration Condition="'$(Configuration)' == 'checked'">Checked</Configuration>

    <UseMonoRuntime>false</UseMonoRuntime>
  </PropertyGroup>

  <Import Project="..\..\Directory.Build.props" />

  <PropertyGroup>
    <IsNativeAotProject Condition="$(MSBuildProjectDirectory.Contains('nativeaot'))">true</IsNativeAotProject>
    <BaseIntermediateOutputPath Condition="'$(IsNativeAotProject)' != 'true'">$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', 'coreclr', '$(MSBuildProjectName)'))</BaseIntermediateOutputPath>
    <BaseIntermediateOutputPath Condition="'$(IsNativeAotProject)' == 'true'">$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', 'coreclr', 'nativeaot', '$(MSBuildProjectName)'))</BaseIntermediateOutputPath>
    <IntermediateOutputPath Condition="'$(PlatformName)' == 'AnyCPU'">$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
    <IntermediateOutputPath Condition="'$(PlatformName)' != 'AnyCPU'">$(BaseIntermediateOutputPath)$(TargetOS).$(TargetArchitecture).$(Configuration)\</IntermediateOutputPath>
    <ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
    <RuntimeBinDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'coreclr', '$(TargetOS).$(TargetArchitecture).$(Configuration)'))</RuntimeBinDir>

    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    <SignAssembly Condition="'$(UsingMicrosoftNETSdk)' != 'true'">false</SignAssembly>
    <CL_MPCount>$(NumberOfCores)</CL_MPCount>
  </PropertyGroup>
</Project>
